luci.mk: adjust path of purged index cache files
authorJo-Philipp Wich <[email protected]>
Fri, 9 Sep 2022 21:34:32 +0000 (23:34 +0200)
committerJo-Philipp Wich <[email protected]>
Mon, 3 Apr 2023 11:45:03 +0000 (13:45 +0200)
The index cache files have been split into separate, dynamically named
Lua and JSON files a while ago, so adjust the remove command in the
postinstall script accordingly.

Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 2e93fa669bb55f954a9e31a1e3801c267d94ab2f)

luci.mk

diff --git a/luci.mk b/luci.mk
index 2071050eb91af302454ba51d4d145b708fc9f16a..c9b7d930b68978bb3fc7bed64bb1e3da5b309639 100644 (file)
--- a/luci.mk
+++ b/luci.mk
@@ -213,7 +213,7 @@ endef
 ifndef Package/$(PKG_NAME)/postinst
 define Package/$(PKG_NAME)/postinst
 [ -n "$${IPKG_INSTROOT}" ] || { \
-       rm -f /tmp/luci-indexcache
+       rm -f /tmp/luci-indexcache.*
        rm -rf /tmp/luci-modulecache/
        killall -HUP rpcd 2>/dev/null
        exit 0